<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/common.css"/>
		<link rel="stylesheet" type="text/css" href="css/iconfont.css"/>
		<link rel="stylesheet" type="text/css" href="css/viewport3.css"/>
		<link rel="stylesheet" href="css/swiper.min.css" type="text/css" />
		<script src="js/swiper.min.js"></script>
	</head>
	<body>
		<div class="web">
			<!--头-->
			<header class="clearfix">
				<div class="backbtn fl"><a href="">Back</a></div>
				<div class="selectBar fr">
					<select name="">
						<option value="">广州市</option>
						<option value="">上海市</option>
						<option value="">北京市</option>	
					</select>
				</div>
				<h3>分类</h3>
			</header>
			
			<!--主体-->
			<section>
				<!--<div class="fenleibanner clearfix">
					<div class="fenleibannerps"><img src="img/banner-food.png" alt="" /><span>美食</span></div>
					<div class="fenleibannerps"><img src="img/banner-movie.png" alt="" /><span>电影</span></div>
					<div class="fenleibannerps"><img src="img/banner-exercise.png" alt="" /><span>运动</span></div>
					<div class="fenleibannerps"><img src="img/banner-sing.png" alt="" /><span>唱歌</span></div>
				</div>
				<div class="fenlei-circle clearfix">
					<div class="yuandian"></div>
					<div class="yuandian2"></div>
					<div class="yuandian2"></div>
					<div class="yuandian2"></div>
				</div>-->
				
				<div class="swiper-container">
			<div class="swiper-wrapper clearfix">
				<div class="swiper-slide"><div class="fenleibannerps"><img src="img/banner-food.png" alt="" /><span>美食</span></div></div>
				<div class="swiper-slide"><div class="fenleibannerps"><img src="img/banner-movie.png" alt="" /><span>电影</span></div></div>
				<div class="swiper-slide"><div class="fenleibannerps"><img src="img/banner-exercise.png" alt="" /><span>运动</span></div></div>
				<div class="swiper-slide"><div class="fenleibannerps"><img src="img/banner-sing.png" alt="" /><span>唱歌</span></div></div>
			</div>
			
		

		</div>
	<script type="text/javascript">
		new Swiper('.swiper-container', {
			loop: true,
			direction: "horizontal",
			pagination: ".swiper-pagination",
			slideToClickedSlide:"true",
			autoplay:3000,
			speed:300,
			slidesPerView : 4,
			slidesPerGroup : 4,
			
		});
	</script>
	
				<!--类别item-->
				
				<div class="item-food">
					<div class="food-title clearfix">
						<div class="food-icon"><img src="img/icon_food.jpg" alt="" /></div>
						<h3>美食类</h3>
						<i class="iconfont icon-you"></i>
						<h5>更多</h5>
					</div>
					<div class="food-list clearfix">
						<div class="food-photo"><img src="img/food_photo1.jpg" alt="" /></div>
						<div class="food-photo"><img src="img/food_photo2.jpg" alt="" /></div>
						<div class="food-photo"><img src="img/food_photo3.jpg" alt="" /></div>
						<div class="food-photo"><img src="img/food_photo4.jpg" alt="" /></div>
					</div>
				</div>
				
				<div class="sport">
					<div class="sport-title clearfix">
						<div class="sport-icon"><img src="img/icon_sport.jpg" alt="" /></div>
						<h3>运动类</h3>
						<i class="iconfont icon-you"></i>
						<h5>更多</h5>
					</div>
					<div class="food-list clearfix">
						<div class="food-photo"><img src="img/sport_photo1.jpg" alt="" /></div>
						<div class="food-photo"><img src="img/sport_photo2.jpg" alt="" /></div>
						<div class="food-photo"><img src="img/sport_photo3.jpg" alt="" /></div>
						<div class="food-photo"><img src="img/sport_photo4.jpg" alt="" /></div>
					</div>
				</div>
				
				
				<div class="movie">
					<div class="movie-title clearfix">
						<div class="movie-icon"><img src="img/icon_movie.jpg" alt="" /></div>
						<h3>运动类</h3>
						<i class="iconfont icon-you"></i>
						<h5>更多</h5>
					</div>
					<div class="food-list clearfix">
						<div class="food-photo"><img src="img/movie_photo1.jpg" alt="" /></div>
						<div class="food-photo"><img src="img/movie_photo2.jpg" alt="" /></div>
						<div class="food-photo"><img src="img/movie_photo1.jpg" alt="" /></div>
						<div class="food-photo"><img src="img/movie_photo2.jpg" alt="" /></div>
					</div>
				</div>
			</section>
			
			<!--尾部-->
			<footer>
				<ul>
					<li><a href="tearmindex.html"><i class="iconfont icon-noun28593cc"></i><p>首页</p></a></li>
					<li class="active"><a href="fenlei.html"><i class="iconfont icon-fl"></i><p>分类</p></a></li>
					<li><a href="discover.html"><i class="iconfont icon-zhinanzhen"></i><p>发现</p></a></li>
					<li><a href="our.html"><i class="iconfont icon-ren"></i><p>我的</p></a></li>
				</ul>
				
				
			</footer>
		</div>
		<script >
    document.body.style.height  = window.innerHeight+"px";
	</script>
		<script>
		
		/*动态改变根元素字体大小*/
			function recalc() {
				var clientWidth = document.documentElement.clientWidth;
				if(!clientWidth) return;
				document.documentElement.style.fontSize = 40 * (clientWidth /750) + 'px';
													//字体大小 =   1rem单位表示多少个像素* (设备的宽度/设计图宽度)
			}

			function initRecalc() {
				recalc();
				var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
				if(!document.addEventListener) return;
				window.addEventListener(resizeEvt, recalc, false);
				document.addEventListener('DOMContentLoaded', recalc, false);
			}
			initRecalc();

	</script>
	</body>
</html>
